-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCLIP sample for visual question answering #977
Conversation
7575227
to
b60f03e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vidyasiv Thanks for the contribution
b60f03e
to
60bf934
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vidyasiv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vidyasiv
Hi Vidya,
Thank you for opening this PR.
Some suggestions/comments here and rest as needed in the specific lines.
- I recommend re-syncing this branch to the top of main
- please do a
make style
as I can see some formatting changes required. - I suggest adding
dtype
to the new funcs (i.e.postprocess
) inputs and outputs. - We likely need to measure these WLs on Gaudi1 for completeness of ci testings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More comments in below.
|
||
```bash | ||
pip install -r openclip_requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I am getting very large throughput.
is this even a realistic usecase?
06/18/2024 16:49:42 - INFO - __main__ - Running warmup
06/18/2024 16:49:43 - INFO - __main__ - Running inference
06/18/2024 16:49:43 - INFO - __main__ - Inference Time per iteration = 5.014ms
06/18/2024 16:49:43 - INFO - __main__ - Throughput = 1.795e+03 images/s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That does seem high..I don't recall seeing that large a throughput
``` | ||
|
||
Models that have been validated: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely needs to be valided on Gaudi1 as well.
60bf934
to
2dd43c5
Compare
2dd43c5
to
b5ae78c
Compare
Co-Authored-By: imangohari1 <[email protected]>
b5ae78c
to
15fc3dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@regisss
Could you please take a look at this? We've done some testing on this and the results are given in above.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
What does this PR do?
https://huggingface.co/microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224/blob/main/biomed_clip_example.ipynb
Fixes # (issue)
Before submitting
Co- author: @imangohari1 (Gaudi1 CI results)